package com.qiniu.githubdata.entity.dto;

/**
 * @Author: mayixiang
 * @Date: 2024-10-30 14:48
 * @Description:
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qiniu.githubdata.entity.Repository;
import lombok.Data;

import javax.swing.text.html.HTML;
import java.io.Serializable;
import java.util.List;

@Data
@TableName("developer")
public class DeveloperDetailResponse implements Serializable {
    
    @TableId(type = IdType.INPUT)  // 使用GitHub的ID
    private Long id;
    
    // GitHub登录名
    private String login;
    
    // 用户名
    private String username;
    
    // 头像URL
    @TableField("avatar_url")
    private String avatarUrl;
    
    // GitHub主页URL
    @TableField("github_url")
    private String githubUrl;
    
    // 技术评分 (0-1)
    @TableField("talent_rank")
    private double talentRank;
    
    // 国籍
    private String nation;
    
    // 是否是估计的国籍
    @TableField("is_estimate")
    private Boolean isEstimate;
    
    // 国籍推测的置信度 (0-100)
    @TableField("nation_confidence")
    private int nationConfidence;
    
    private List<String> domain;
    // 开发者简介
    private String summary;

    private String bio;
    private String blog;
    private List<Repository> repositories;
//    List<String> tags;
    // 仓库数量
    @TableField("repository_count")
    private Integer repositoryCount;
}